package jgame.model;

public class Position {
	int x;
	int y;
	
	public Position() {
	}

	public Position(int x, int y) {
		this.setX(x);
		this.setY(y);
	}
	
	public int getX() {
		return this.x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return this.y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public void set(int x, int y) {
		this.setX(x);
		this.setY(y);
	}
	
	public String toString() {
		return "(" + this.getX() + ", " + this.getY() + ")";
	}
	
	public boolean equals(Position obj) {
		return (this.x == obj.x && this.y == obj.y) ? true : false;
	}
	
}
